/*
 * @Author: weiwang
 * @Date:   2018-12-02 12:42:45
 * @Last Modified by:   weiwang
 * @Last Modified time: 2018-12-02 12:56:32
 */
'use strict';

const Service = require('../core/common');

class DashboardsService extends Service {
  findAll(params = {}) {
    const { ctx } = this;

    // return ctx.model.Dashboards.findAndCountAll(this.paging(params));
    return ctx.model.Addresses.findAndCountAll(this.paging(params));
  }

  create(params = {}) {
    const { ctx } = this;

    return ctx.model.Dashboards.create();
  }
}

module.exports = DashboardsService;